package com.atguigu.mes.controller;


import com.atguigu.commonutils.R;
import com.atguigu.mes.service.MachineService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author Lei Deng
 * @since 2022-04-25
 */
@RestController
@RequestMapping("/mes/machine")
public class MachineController {

    @Autowired
    private MachineService machineService;

    @GetMapping("hello")
    public R hello(){
        System.out.println("hello");
        //List<Machine> machines = machineService.getallMachine();
        //List<PartswithResource> partswithResource = machineService.getPartswithResource();
        //System.out.println(partswithResource.size());
        return R.ok().data("msg","ok");
    }
}

